package tianrun.ziguan.api.calculate.config.entity.base;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;

import java.io.Serializable;

/**
 * 计算点位所需原始点配置表
 *
 * @author zhaoqi
 */
public class BaseCalLabelConfig implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键Id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 计算点
     */
    @TableField("cal_label")
    private String calLabel;

    /**
     * 计算点计算所需点位
     */
    @TableField("label")
    private String label;
    /**
     * 虚拟变量名
     */
    @TableField("virtual_label")
    private String virtualLabel;

    /**
     * 点位名称
     */
    @TableField("label_name")
    private String labelName;

    /**
     * 点位来源；self自身，child子设备
     */
    @TableField("source")
    private String source;

    /**
     * 数据类型；hist历史数据，real实时数据，last最新数据
     */
    @TableField("data_type")
    private String dataType;

    /**
     * 关系表；t_indicators_instance自定义指标实例
     */
    @TableField("relation_table")
    private String relationTable;

    /**
     * 关系表id
     */
    @TableField("relation_id")
    private Long relationId;
    @TableField("mold")
    private String mold;
    /**
     * 是否有效；0无效，1有效
     */
    @TableLogic(value = "true",delval = "false")
    @TableField("is_valid")
    private Boolean isValid;

    public String getVirtualLabel() {
        return virtualLabel;
    }

    public void setVirtualLabel(String virtualLabel) {
        this.virtualLabel = virtualLabel;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCalLabel() {
        return calLabel;
    }

    public void setCalLabel(String calLabel) {
        this.calLabel = calLabel;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public String getLabelName() {
        return labelName;
    }

    public void setLabelName(String labelName) {
        this.labelName = labelName;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getDataType() {
        return dataType;
    }

    public void setDataType(String dataType) {
        this.dataType = dataType;
    }

    public String getRelationTable() {
        return relationTable;
    }

    public void setRelationTable(String relationTable) {
        this.relationTable = relationTable;
    }

    public Long getRelationId() {
        return relationId;
    }

    public void setRelationId(Long relationId) {
        this.relationId = relationId;
    }

    public Boolean getIsValid() {
        return isValid;
    }

    public void setIsValid(Boolean isValid) {
        this.isValid = isValid;
    }

    public String getMold() {
        return mold;
    }

    public void setMold(String mold) {
        this.mold = mold;
    }
}
